package com.hjt.gulimall.product.feign;

import com.hjt.common.to.ware.SkuReductionTo;
import com.hjt.common.to.ware.SpuBoundTo;
import com.hjt.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * 优惠服务远程调用客户端
 * @author:97007
 * @date:2021/9/13 16:59
 */
@FeignClient("gulimall-coupon")
public interface CouponFeignService {


    // 保存积分信息
    @PostMapping("/coupon/spubounds/save")
    R saveSpuBounds(@RequestBody SpuBoundTo spuBoundTo);

    // 保存折扣信息
    @PostMapping("/coupon/skufullreduction/saveInfo")
    R saveSkuReduction(@RequestBody SkuReductionTo skuReductionTo);
}
